package jin.competition.jan04;

//改进版本，teacher said“数据类型还可以更加精确”  float小数点后 1 位  ，double小数点后 2 位
public class Improve {

	double operation(int a1, double a2, double a3, int a4, int a5, float a6) {
		double result = a1 * a2 + a3 - a4 / a5 + a6;
		return result;
	}

	public static void main(String[] args) {

		Improve T3 = new Improve();
		double R3 = T3.operation(88, 1.88, 5.12, 66, 12, (float) 5.3);
		System.out.print("输入：88，5.12，66，5.3，12，1.88 得到：88*1.88+5.12-66/12+5.3的结果:" + R3);

		// 结果:170.86000019073487
	}

}
